package com.wego.upms.service;

import com.alibaba.fastjson.JSONArray;
import com.wego.common.base.BaseService;
import com.wego.upms.model.UpmsRolePermission;
import com.wego.upms.model.UpmsRolePermissionExample;

/**
* UpmsRolePermissionService接口
* Created by Lee on 2018/3/5.
*/
public interface UpmsRolePermissionService extends BaseService<UpmsRolePermission, UpmsRolePermissionExample > {

    /**
     * 角色权限
     * @param datas 权限数据
     * @param id 角色id
     * @return
     */
    int rolePermission ( JSONArray datas, int id );

}